package com.example.administrator.dagger2demo.di;

import com.example.administrator.dagger2demo.http.RestApi;

import javax.inject.Singleton;

import dagger.Component;

/**
 * Created by Administrator on 2016/4/12.
 */
@Singleton
@Component(modules = {ApiModule.class, MainModule.class})
public interface AppComponent {


    /**
     * 获取RestApi 实例
     *
     * @return
     */
    RestApi getRestApi();

    /**可有可无*/
//    Retrofit getRetrofit();


}
